#include<iostream>
#include<vector>
using namespace std;

int main(){
	vector<int> v;
	v.reserve(100);
	for(int i=0; i<100; i++){
		cout<<"size = "<<v.size()<<", "<<"capacity = "<<v.capacity()<<endl;
		v.push_back(i);
	}

	//reserve  修改的是capacity
	//resize 修改的是size
	//这两个一定不要去记混了
	
	return 0;
}
